
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<style>
    .fixed-table-container {
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .fixed-table-pagination .pagination-detail, .fixed-table-pagination div.pagination {
        margin-top: 15px !important;
    }

    table th, table td {
        text-align: center;
    }
</style>


<link rel="stylesheet" href="${path}/static/css/public/order.css">
<script src="${path}/static/security/rateradmin/rateradmin.js"></script>
<div class="form-inline" role="form" id="admintoolbar">
    <input id="admin" type="hidden" value="<%=request.getSession().getAttribute("super") %>"/>
    <button type="button" class="btn btn-default btn-default-button" id="addAdmin">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
        创建账号
    </button>

    <button type="button" class="btn btn-default btn-default-button" id="fenzu">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
        自动分组
    </button>

    <button type="button" class="btn btn-default btn-default-button" id="DuanXinYouJian">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
        短信邮件通知
    </button>

</div>

<table id="table"
       data-toggle="table"
       data-toolbar="#admintoolbar"
       data-url="${path}/web/ensadmin/adminQuery?roleId=12"
       data-height="540"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
       data-search="true" data-show-refresh="true"
       data-search-tip="搜索用户账号"
       data-show-columns="true">
    <thead>
    <tr>
        <th data-field="id">编号</th>
        <th data-field="feizu">分组</th>
        <th data-field="userName">用户账号</th>
        <th data-field="phone">手机号</th>
        <th data-field="linkman">联系人</th>
        <th data-field="identity">身份</th>
        <th data-field="job">职务</th>
        <th data-field="sex">性别</th>
        <th data-field="enable" data-formatter="RaterAdmin.showEnable">状态</th>
        <th data-field="id" data-formatter="RaterAdmin.formatter" data-events="operateEvents">操作</th>
    </tr>
    </thead>
</table>


<!--自己添加的代码，点击添加弹出的界面*************-->
<div id="addAdmin-div" class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-header">
            <h3 class='box-title'>
                <button class="btn btn-error close-model">关闭</button>
            </h3>
            <button class="btn btn-info form-submit" form-id="adminForm">保存</button>
        </div>
        <div class="box-body">
            <form role="form" action="/web/ensadmin/saveOrUpdateAdmin" method="post" id="adminForm"
                  data-callback="saveAdmin">
                <input type="hidden" name="id"/>
                <input type="hidden" name="roleId" value="12"/>
                <div class="form-group">
                    <label>评委账号:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="评委账号必须使用手机号">?</a></label>
                    <input type="text" id="admin_name" class="form-control" name="userName" data-msg="请输入手机号"
                           placeholder="请输入手机号" check-type="mobile" required="true"/>
                </div>
                <div class="form-group">
                    <label>用户密码:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写密码">?</a></label>
                    <input type="text" id="admin_pwd" class="form-control" name="pwd" placeholder="请输入密码"
                           required="true" rangelength="[6,16]"/>
                </div>
                <div class="form-group">
                    <label>联系人:<a href="#" data-toggle="tooltip" data-placement="right"
                                  title="请认真填写联系人">?</a></label>
                    <input type="text" class="form-control" name="linkman" data-msg="请输入联系人"
                           placeholder="请输入联系人" required="true" maxlength="16"/>
                </div>
                <div class="form-group">
                    <label>手机号:<a href="#" data-toggle="tooltip" data-placement="right"
                                  title="请填写联系人手机号">?</a></label>
                    <input type="text" class="form-control" name="phone" data-msg="请输入联系人手机号"
                           placeholder="请输入联系人手机号" required="true" maxlength="16"/>
                </div>
                <div class="form-group">
                    <label>职务:<a href="#" data-toggle="tooltip" data-placement="right"
                                 title="请认真填写职务">?</a></label>
                    <input type="text" class="form-control" name="job" data-msg="请输入职务"
                           placeholder="请输入职务" required="true" maxlength="16"/>
                </div>

                <div class="form-group">
                    <label>邮箱:<a href="#" data-toggle="tooltip" data-placement="right"
                                 title="请认真填写邮箱">?</a></label>
                    <input type="text" class="form-control" name="email" data-msg="请输入邮箱"
                           placeholder="请输入邮箱" required="true" maxlength="100"/>
                </div>

                <!--下面是新添加的字段-->

                <div class="form-group">
                    <label>身份:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写身份">?</a></label>
                    <select class="form-control" name="identity" required="true">
                        <option value="技术科研专家">技术科研专家</option>
                        <option value="行业管理专家">行业管理专家</option>
                        <option value="企业家">企业家</option>
                        <option value="其他专家 ">其他专家</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>性别:<a href="#" data-toggle="toootip" data-placement="right"
                    title="请认真填写性别">?</a></label>
                    <select class="form-control" name="sex" required="true">
                        <option value="男">男</option>
                        <option value="女">女</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>生日:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写生日">?</a></label>
                    <input type="text" class="form-control alterAnddAlterBirth" name="birth"data-msg="请输入生日"
                           placeholder="请输入生日"/>
                </div>

                <div class="form-group">
                    <label>学历:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写学历">?</a></label>
                    <input type="text" class="form-control" name="degree" data-msg="请输入学历"
                           placeholder="请输入学历" />
                </div>

                <div class="form-group">
                    <label>专业:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写专业">?</a></label>
                    <input type="text" class="form-control" name="major" data-msg="请输入专业"
                           placeholder="请输入专业" />
                </div>
                <div class="form-group">
                   <label>从事行业:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写从事行业">?</a></label>
                   <input type="text" class="form-control" name="industryOwned" data-msg="请输入从事行业"
                           placeholder="请输入从事行业" />
                </div>
                <div class="form-group">
                    <label>单位名称:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写单位名称">?</a></label>
                    <input type="text" class="form-control" name="unitName" data-msg="请输入单位名称"
                           placeholder="请输入单位名称" />
                </div>

                <div class="form-group">
                    <label>微信:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写微信">?</a></label>
                    <input type="text" class="form-control" name="wechat" data-msg="请输入微信"
                           placeholder="请输入微信" />
                </div>
                <div class="form-group">
                    <label>单位电话:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写单位电话">?</a></label>
                    <input type="text" class="form-control" name="unitMobile" data-msg="请输入单位电话"
                           placeholder="请输入单位电话" />
                </div>

            </form>
        </div><!-- /.box-body -->
    </div>
</div>

<!--************下面是修改弹出的框*******************-->

<div id="finddetail-div" class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-header">
            <h3 class='box-title'>
                <button class="btn btn-error close-model">关闭</button>
            </h3>
            <button class="btn btn-info form-submit" data-event="alter-save">保存</button>
        </div>
        <div class="box-body">
            <form role="form" action="${path}/web/ensadmin/nUpdateAdmin" method="post" id="saveDetail">
                <input type="hidden" name="id" id="addId"/>
                <input type="hidden" name="roleId" value="12"/>
                <input type="hidden" name="elseParkId" id="park_id"/>
                <input name="cityId" type="hidden" id="addCityId"/>

                <div class="form-group">
                    <label>评委账号:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="评委账号必须使用手机号">?</a></label>
                    <input type="text" id="saveadmin_name" class="form-control" name="userName" data-msg="请输入手机号"
                           placeholder="请输入手机号" check-type="mobile"/>
                </div>

                <div class="form-group">
                    <label>用户手机:<a href="#" data-toggle="tooltip" data-placement="right"
                                   title="请认真填写手机">?</a></label>
                    <input type="text" id="addPhone" class="form-control" name="phone" placeholder="请输入手机"
                           required="true"/>
                </div>

                <div class="form-group">
                    <label>联系人:<a href="#" data-toggle="tooltip" data-placement="right"
                                  title="请认真填写联系人">?</a></label>
                    <input type="text" id="addLink" class="form-control" name="linkman" data-msg="请输入联系人"
                           placeholder="请输入联系人" required="true" maxlength="16"/>
                </div>
                <%--<div class="form-group">
                    <label>最后登陆时间:<a href="#" data-toggle="tooltip" data-placement="right"
                                  title="请认真填写登陆时间">?</a></label>
                    <input type="text" id="addLastTime" class="form-control form_datetime" name="last_time" data-msg="请输入登陆时间"
                           placeholder="请输入登陆时间" required="true"/>
                </div>
--%>
                <div class="form-group">
                    <label>职务:<a href="#" data-toggle="tooltip" data-placement="right"
                                 title="请认真填写职务">?</a></label>
                    <input type="text" class="form-control" id="addJob" name="job" data-msg="请输入职务"
                           placeholder="请输入职务" required="true" maxlength="16"/>
                </div>

                <div class="form-group">
                    <label>所属组
                        <a href="#" data-toggle="tooltip" data-placement="right" title="请选择所属组">?</a>
                    </label>
                    <select name="group" class="form-control">
                        <option value="A组">A组</option>
                        <option value="B组">B组</option>
                        <option value="C组">C组</option>
                        <option value="D组">D组</option>
                    </select>
                </div>


                <!--下面是新添加的字段-->

                <div class="form-group">
                    <label>身份:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写身份">?</a></label>
                    <select class="form-control" name="identity" required="true">
                        <option value="技术科研专家">技术科研专家</option>
                        <option value="行业管理专家">行业管理专家</option>
                        <option value="企业家">企业家</option>
                        <option value="其他专家 ">其他专家</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>性别:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写性别">?</a></label>
                    <select class="form-control" name="sex" required="true">

                        <option value="男">男</option>
                        <option value="女">女</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>生日:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写生日">?</a></label>
                    <input type="text" class="form-control alterAnddAlterBirth" name="birth" data-msg="请输入生日"
                           placeholder="请输入生日"/>
                </div>

                <div class="form-group">
                    <label>学历:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写学历">?</a></label>
                    <input type="text" class="form-control" name="degree" data-msg="请输入学历"
                           placeholder="请输入学历" />
                </div>

                <div class="form-group">
                    <label>专业:<a href="#" data-toggle="toootip" data-placement="right"
                                 title="请认真填写专业">?</a></label>
                    <input type="text" class="form-control" name="major" data-msg="请输入专业"
                           placeholder="请输入专业" />
                </div>
                <div class="form-group">
                    <label>从事行业:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写从事行业">?</a></label>
                    <input type="text" class="form-control" name="industryOwned" data-msg="请输入从事行业"
                           placeholder="请输入从事行业" />
                </div>
                <div class="form-group">
                    <label>单位名称:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写单位名称">?</a></label>
                    <input type="text" class="form-control" name="unitName" data-msg="请输入单位名称"
                           placeholder="请输入单位名称" />
                </div>

                <div class="form-group">
                    <label>微信:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写微信">?</a></label>
                    <input type="text" class="form-control" name="wechat" data-msg="请输入微信"
                           placeholder="请输入微信" />
                </div>
                <div class="form-group">
                    <label>单位电话:<a href="#" data-toggle="toggle" data-placement="right" title="请认真填写单位电话">?</a></label>
                    <input type="text" class="form-control" name="unitMobile" data-msg="请输入单位电话"
                           placeholder="请输入单位电话" />
                </div>

            </form>
        </div>
    </div>
</div>





<!--修改-->
<div id="alter-div" class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-header">
            <h3 class='box-title'>
                <button class="btn btn-error close-model">关闭</button>
            </h3>
            <button class="btn btn-info form-submit" id="pwdSave">保存</button>
        </div>

        <div class="box-body">
            <form role="form">

                <input type="hidden" id="auserName" />
                <div class="form-group">
                    <label>新密码:<span id="spans" class="star">*</span></label>
                    <input class="form-control" id="Pwd" name="aPwd" />
                    </td>
                </div>
                <div class="form-group">
                    <label>确认密码:<span id="span" class="star">*</span></label>
                    <input id="nPwd" class="form-control" name="anPwd" />
                    </td>
                </div>
            </form>
        </div>
    </div>
</div>
